<?php
////////////////////////////////////////////////////
//	LinBoard
//	Framework/Framework.php
//	Created: 18th February 2009; 16:26 UTC
//	LinBoard (c) Copyright OpenInferno 2008, 2009
////////////////////////////////////////////////////

//Setup Environment
error_reporting(E_ALL | E_STRICT);

//Direct Access Check
if(!defined("LINBOARD"))
{
	die("<h1>Access Error</h1>Direct Access to this script is forbidden.");
}

//Include Framework Files
require_once(ROOT_PATH . "/Framework/Mysql.php");
require_once(ROOT_PATH . "/Framework/Template.php");
require_once(ROOT_PATH . "/Framework/Board.php");
require_once(ROOT_PATH . "/Framework/Thread.php");
require_once(ROOT_PATH . "/Framework/Post.php");
require_once(ROOT_PATH . "/Framework/Login.php");
require_once(ROOT_PATH . "/Framework/Misc.php");
require_once(ROOT_PATH . "/Framework/User.php");

class Framework
{
	
	public static function Mysql()
	{
		return Mysql::getInstance();
	}
	
	public static function Template()
	{
		return Template::getInstance();
	}
	
	public static function Config()
	{
		return Config::getInstance();
	}
	
	public static function Board()
	{
		return Board::getInstance();
	}
	
	public static function Thread()
	{
		return Thread::getInstance();
	}
	
	public static function Post()
	{
		return Post::getInstance();
	}
	
	public static function Login()
	{
		return Login::getInstance();
	}
	
	public static function Misc()
	{
		return Misc::getInstance();
	}
	
	public static function User()
	{
		return User::getInstance();
	}
	
}
?>